package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.UserCowListVO;import com.lanchetech.entity.Cow;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface CowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Cow record);

    int insertSelective(Cow record);

    Cow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Cow record);

    int updateByPrimaryKey(Cow record);

    Cow findOneByUserId(@Param("userId") Long userId);

    List<UserCowListVO> findAllPage(PageReq req);
}